package com.example.medicinetime;
import java.util.Date;
public class MedicienRecord {
    private int id;
    private String medicienName;
    private String startTime;//开始服药的时间
    private int duration;//疗程持续时间
    private String dailytime;
    private int dosis;//服药剂量
    private int alarmId;

    public MedicienRecord(int id,String medicienName, String startTime, int duration, String dailytime, int dosis,int alarmId) {
        this.id = id;
        this.medicienName = medicienName;
        this.startTime = startTime;
        this.duration = duration;
        this.dailytime = dailytime;
        this.dosis = dosis;
        this.alarmId = alarmId;
    }

    public MedicienRecord() {
        super();
        medicienName = "";
        startTime = "";
        duration=1;
        dailytime = "";
        dosis=1;
    }

    public MedicienRecord(int id, String medicienName) {
        this.id = id;
        this.medicienName = medicienName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMedicienName() {
        return medicienName;
    }

    public void setMedicienName(String medicienName) {
        this.medicienName = medicienName;
    }



    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }





    public int getDosis() {
        return dosis;
    }

    public void setDosis(int dosis) {
        this.dosis = dosis;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getDailytime() {
        return dailytime;
    }

    public void setDailytime(String dailytime) {
        this.dailytime = dailytime;
    }

    public int getAlarmId() {
        return alarmId;
    }

    public void setAlarmId(int alarmId) {
        this.alarmId = alarmId;
    }
}
